//
//  OPMembersList.h
//  OPFramework
//
//  Created by malcom on 7/24/08.
//  Copyright 2008 malcom-mac software. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OPPageContainer.h"
#import "OPBaseObject.h"

@interface OPMembersList : OPBaseObject {
	OPPageContainer *p_paginatedList;
	int				p_itemsPerPage;

	
	// INTERNAL USE
	NSMutableArray	*_fctParameters;
	NSString		*_calledMethod;
}

@property (assign)		int					p_itemsPerPage;
@property (readonly)	OPPageContainer		*p_paginatedList;

#pragma mark INIT METHODS
- (id) initToListUsersStartsWithChar:(char) _char fromBoard:(OPBoard *) _board;
- (id) initToSearchUsersWithCriteria:(NSDictionary *) _searchCriteria fromBoard:(OPBoard *) _board;
- (id) initToSearchCommonPropertiesContains:(NSString *) _containsString fromBoard:(OPBoard *) _board;

#pragma mark PUBLIC METHODS
- (NSArray *) getMembersPage:(NSNumber *) _pgIdx;

#pragma mark PRIVATE METHODS
- (void) _parseResultsList:(NSArray *) _result;

@end
